<div class="button-item">
    <button pButton type="text" class="ui-button-info" icon="fa fa-plus" label="保存" (click)="saveUpdate()"></button>
    <button pButton type="text" class="ui-button-danger" icon="fa fa-search" label="删除" (click)="delete()"></button>
</div>


<form [formGroup]="humanForm">
    <div class="ui-grid-row" style="height:100%;margin-top:15px;">
        <div class="ui-g-10">
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">标志</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="humanId" type="text" style="width:100%" readonly />
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">所属机构</div>
                <div class="ui-g-8">
                    <input type="hidden" formControlName="unitId" />
                    <input type="hidden" formControlName="unitCode" />
                    <input pInputText formControlName="unitName" type="text" style="width:100%" readonly />
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">姓名</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="humanName" type="text" style="width:100%" />
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">用户名</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="userName" type="text" style="width:100%" />
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">允许登录</div>
                <div class="ui-g-8">
                    <p-toggleButton formControlName="loginFlag" onLabel="允许" offLabel="不允许" onIcon="pi pi-check"
                        offIcon="pi pi-times" [style]="{'width':'100%'}"></p-toggleButton>
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">联系电话</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="telephone" type="text" style="width:100%" />
                </div>
            </div>

            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">创建时间</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="createTime" type="text" style="width:100%" readonly />
                </div>
            </div>
            <div class="ui-g-6 form-control-row">
                <div class="ui-g-4">创建人</div>
                <div class="ui-g-8">
                    <input pInputText formControlName="createUser" type="text" style="width:100%" readonly />
                </div>
            </div>
            <div class="ui-g-12 form-control-row">
                <div class="ui-g-2">人员描述</div>
                <div class="ui-g-10">
                    <textarea formControlName="humanDesc" pInputTextarea rows="3" style="width:100%"></textarea>
                </div>
            </div>
        </div>
    </div>
</form>